//
//  UIColorExtension.swift
//  U17_Test
//
//  Created by dingjunchuxing on 2019/9/25.
//  Copyright © 2019 text. All rights reserved.
//

import UIKit

extension UIColor {
    convenience init(r:UInt32 ,g:UInt32 , b:UInt32 , a:CGFloat = 1.0){
        self.init(red: CGFloat(r) / 255.0,
                         green: CGFloat(g) / 255.0,
                         blue: CGFloat(b) / 255.0,
                         alpha: a)
    }
    
    class var random: UIColor{
        return self.init()
    }
}
